Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

359
Views
Is IL instruction "cpobj" applicable for reference types?

Microsoft Docs says:

The behavior of cpobj is unspecified if ……, or if classTok does not represent a value type.

But ECMA 335 says:

If typeTok is a reference type, the cpobj instruction has the same effect as ldind.ref followed by stind.ref.

Which is correct?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If we look through the previous editions of ECMA-335, we find that the 3rd edition changed the wording to specify:

If typeTok is a reference type, the cpobj instruction has the same effect as ldind.ref followed by stind.ref.

In editions 1 and 2, the wording matched that on MSDN.

Therefore, I think it's safe to conclude that ECMA-335 6th edition is correct, and MSDN is out of date.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!